import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import { registerMicroApps, start } from "qiankun";

Vue.config.productionTip = false;

Vue.use(ElementUI);
// 配置子应用列表
const apps = [
  {
    name: "mlu", //应用名
    entry: "//localhost:10000", //默认会加载这个html解析里面的js动态的执行（子应用必须支持跨域)fetch
    container: "#mlu", //容器名
    activeRule: "/mlu", //激活路径
    props: { a: 1 }, //父传子参
  },
];
registerMicroApps(apps); //注册应用，可以在此加入生命周期钩子
start();
// 微前端
new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
